<template>
    <div class="text">
        {{text}}: <slot></slot>
    </div>
</template>

<script>
    export default {
        name:'TestComp',
        
        props: {
            text: {
                default:'计数器',
            },
        },
        
        setup(props, {emit}) {
            return {}
        }
    }
</script>

<style scoped>
    .text {
        margin-top:10px;
        color:red;
    }
</style>

